<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>插件使用介绍</title>
	</head>
	<body>
		<script type="text/javascript">
			/* 
			 1.打包html的插件
			 命令安装：npm install html-webpack-plugin --save-dev
			 修改配置文件
			 const HtmlWebpackPlugin = require('html-webpack-plugin')
			 const webpackMerge= require('webpack-merge')
			 plugins:[
				 new webpack.BannerPlugin('最终版权归我所有'),
				 new HtmlWebpackPlugin({
					 template:'index.hmtl'//自动生成index.html文件
				 }),
				 new UglifyjsWebpackPlugin()//压缩js
			 ]
			 2.js压缩的插件
			 命令安装：npm install uglifyjs--webpack-plugin@1.1.1  --save-dev
			 修改配置文件
			 const uglifyJsPlugin = require('uglifyjs-webpack-plugin')
			 
			  new UglifyjsWebpackPlugin()
			  
			  
			  3.webpack-dev-server搭建本地服务器
			  命令安装：npm install --save-dev webpack-dev-server@2.9.1
			  配置文件：
			  devServer:{
				  contentBase:'./dist',
				  inline:true
			  }
			   4.webpack配置文件的分离
			   命令安装：npm install webpack-merge  --save-dev
			   配置文件：

			    const webpackMerge= require('webpack-merge')
				
			 
			 */
		</script>
	</body>
</html>
